public class Test01{
    public static void main(String[] args){
        // long num = 10;
        // System.out.println("num="+num);

        double price = 8.1F;
        System.out.println("price="+price); 

        //大转小，编译失败
        // float PI = 3.14;

        long num1;
        int num2 = 10;
        num1 =num2;
        System.out.println("num1="+num1); 

        byte b = 10;
        short s = 5;
        int num = b + s;
        // short num = b + s;
        System.out.println("num="+num);

        float f1 = (float)3.14;
        float f2 = 3.14F;
        double f3 = 3.14;
        System.out.println("f1="+f1);
        System.out.println("f2="+f2);
        System.out.println("f3="+f3);

        int i = (int)3.14;
        int i1 = (int)3.54;
        System.out.println("i="+i);
        System.out.println("i1="+i1);


        byte b1 = 10;
        short s1 = 5;
        double d2 = 2.3;
        double r = (b1-5)*s1+d2;
        System.out.println("r="+r);
        float floatR = (float)((b1-5)*s1+d2) ;
        System.out.println("floatR="+floatR);
       }
}